projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c229716
)
deprecated: Cast g_object_ref() to the right type
author
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 15:02:30 +0000
(15:02 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 11 Feb 2018 23:28:50 +0000
(23:28 +0000)
In GLib 2.56, g_object_ref() will check that you're assigning the return
value to a variable of the same type you're passing in.
gtk/deprecated/gtkuimanager.c
patch
|
blob
|
history
diff --git
a/gtk/deprecated/gtkuimanager.c
b/gtk/deprecated/gtkuimanager.c
index a0b4129376fa835c725fd00130434e8134d44ce4..6ee242dd5c55f42fc6cb34353874971126f2b4d0 100644
(file)
--- a/
gtk/deprecated/gtkuimanager.c
+++ b/
gtk/deprecated/gtkuimanager.c
@@
-740,7
+740,7
@@
gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable,
g_signal_connect (widget, "hierarchy-changed",
G_CALLBACK (child_hierarchy_changed_cb),
GTK_UI_MANAGER (buildable));
- return
g_object_ref (widget
);
+ return
G_OBJECT (g_object_ref (widget)
);
}
static void